<?php
$arr = array(0=>array("name"=>"张三","age"=>20),1=>array("name"=>"李四","age"=>22),2=>array("name"=>"王五","age"=>21));


?>

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<ul>
			<?php foreach($arr as $v){ ?>
					<li>姓名：<?php echo $v['name'];?> 年龄 <?php echo $v['age']; ?></li>
			<?php } ?>
			
		</ul>
	</body>
</html>
